<?php
class ome_desktop_widgets_service_order{
       
    public function get_menugroup(){
        $orderObj = &app::get('ome')->model('orders');
        $data['label'] = '订单';
        $data['type'] = 'order';
        $data['value']['0']['count'] = $orderObj->count(array('ship_status' =>array('type' => '0'),'status' => 'active','is_fail'=>'false'));
        $data['value']['0']['label'] = '待发货';
        $data['value']['1']['count'] = $orderObj->count(array('process_status' =>array('unconfirmed','splitting'),'status' => 'active','is_fail'=>'false'));
        $data['value']['1']['label'] = '未确认';
        $data['value']['2']['count'] = $orderObj->count(array('pay_status' => array('0','3','4'),'status' => 'active','is_fail'=>'false'));
        $data['value']['2']['label'] = '待付款';
        return $data;
    }
}